package crossbreed.tests.mocks.utilities;

import java.io.IOException;
import java.util.ArrayList;
import crossbreed.utilities.ISimpleFileReader;

public class MockFileReader implements ISimpleFileReader
{
	public ArrayList<String> lines;
	
	public MockFileReader()
	{
		lines = new ArrayList<String>();
	}
	
	@Override
	public ArrayList<String> readAllLines() throws IOException
	{
		return lines;
	}

	@Override
	public String readAsString() throws IOException
	{
		StringBuilder text = new StringBuilder();
		for (String line : lines) text.append(line).append("\r\n"); 
		return null;
	}

	@Override
	public String getPath()
	{
		return "";
	}

	@Override
	public void setPath(String filePath)
	{
	}
}
